<div class="modal fade" id="confirmBox" tabindex="-1" role="dialog" aria-labelledby="confirmBoxLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="confirmBoxLabel"></h4>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">Отмена</button>
				<a href="#" class="btn btn-danger danger">Подтвердить</a>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	$(function () {
		$('#confirmBox').on('show.bs.modal', function (e) {
			$(this).find('#confirmBoxLabel').html($(e.relatedTarget).data('text'));
			$(this).find('.danger').attr('href', $(e.relatedTarget).data('href'));

			if ($(e.relatedTarget).data('click')) {
				$(this).find('.danger').attr('onclick', $(e.relatedTarget).data('click'))
			}

		});
	});
</script>